package br.com.hotel.dao;

import java.util.ArrayList;
import java.util.List;

import javax.faces.model.DataModel;
import javax.faces.model.ListDataModel;
import javax.persistence.Query;

import br.com.hotel.entity.Cliente;

public class ClienteDAO extends GenericJpaRepository<Cliente, Long>{

	public List<Cliente> clientes;
	
	
	public ClienteDAO() throws ClassNotFoundException{
		createEntityManager();
	}
	
	public List<Cliente> getClientes(){
		
		return findAll();
	}
	
}
